/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.oktago.ibore;

import android.graphics.Bitmap;
import java.util.HashMap;

/**
 *
 * @author massimo
 */

public class Cache {

    private static HashMap<String, Bitmap> icons = new HashMap<String, Bitmap>();
    static Bitmap loginIcon, logoutIcon;
    
    public static Bitmap getTypeIcon(String typeName) {
        return icons.get(typeName);
    }

    public static void setTypeIcon(String typeName, Bitmap icon) {
        icons.put(typeName, icon);
    }

    public static Bitmap getLoginIcon() {
        return loginIcon;
    }

    public static void setLoginIcon(Bitmap icon) {
        Cache.loginIcon=icon;
    }

    public static Bitmap getLogoutIcon() {
        return logoutIcon;
    }

    public static void setLogoutIcon(Bitmap icon) {
        Cache.logoutIcon=icon;
    }

}
